<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::io::depth_sense::DepthSenseDeviceManager类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1io_1_1depth__sense_1_1_depth_sense_device_manager.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pri-methods">Private 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="#pri-static-attribs">静态 Private 属性</a> &#124;
<a href="classpcl_1_1io_1_1depth__sense_1_1_depth_sense_device_manager-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::io::depth_sense::DepthSenseDeviceManager类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="depth__sense__device__manager_8h_source.html">depth_sense_device_manager.h</a>&gt;</code></p>
<div class="dynheader">
类 pcl::io::depth_sense::DepthSenseDeviceManager 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpcl_1_1io_1_1depth__sense_1_1_depth_sense_device_manager.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpcl_1_1io_1_1depth__sense_1_1_depth_sense_device_manager_1_1_captured_device.html">CapturedDevice</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a95a0e7e900965627b9e7d814cf45811c"><td class="memItemLeft" align="right" valign="top"><a id="a95a0e7e900965627b9e7d814cf45811c"></a>
typedef boost::shared_ptr&lt; <a class="el" href="classpcl_1_1io_1_1depth__sense_1_1_depth_sense_device_manager.html">DepthSenseDeviceManager</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>Ptr</b></td></tr>
<tr class="separator:a95a0e7e900965627b9e7d814cf45811c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:affbc72f553f65799a2c9325c6f71f274"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1depth__sense_1_1_depth_sense_device_manager.html#affbc72f553f65799a2c9325c6f71f274">getNumDevices</a> ()</td></tr>
<tr class="separator:affbc72f553f65799a2c9325c6f71f274"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6cc6c8e88bb56a49948ce21ca746e72c"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1depth__sense_1_1_depth_sense_device_manager.html#a6cc6c8e88bb56a49948ce21ca746e72c">captureDevice</a> (<a class="el" href="structpcl_1_1io_1_1depth__sense_1_1_depth_sense_grabber_impl.html">DepthSenseGrabberImpl</a> *grabber)</td></tr>
<tr class="separator:a6cc6c8e88bb56a49948ce21ca746e72c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29a134cf65e0c5f26eab6d1069c49dfb"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1depth__sense_1_1_depth_sense_device_manager.html#a29a134cf65e0c5f26eab6d1069c49dfb">captureDevice</a> (<a class="el" href="structpcl_1_1io_1_1depth__sense_1_1_depth_sense_grabber_impl.html">DepthSenseGrabberImpl</a> *grabber, size_t index)</td></tr>
<tr class="separator:a29a134cf65e0c5f26eab6d1069c49dfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa19f5dac997a28999fc13ba81a768bc0"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1depth__sense_1_1_depth_sense_device_manager.html#aa19f5dac997a28999fc13ba81a768bc0">captureDevice</a> (<a class="el" href="structpcl_1_1io_1_1depth__sense_1_1_depth_sense_grabber_impl.html">DepthSenseGrabberImpl</a> *grabber, const std::string &amp;sn)</td></tr>
<tr class="separator:aa19f5dac997a28999fc13ba81a768bc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07b2916e77e3c154ad30183d58521bc6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1depth__sense_1_1_depth_sense_device_manager.html#a07b2916e77e3c154ad30183d58521bc6">releaseDevice</a> (const std::string &amp;sn)</td></tr>
<tr class="separator:a07b2916e77e3c154ad30183d58521bc6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a297febbe26bf8f4f4033645eb92daf6e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1depth__sense_1_1_depth_sense_device_manager.html#a297febbe26bf8f4f4033645eb92daf6e">reconfigureDevice</a> (const std::string &amp;sn)</td></tr>
<tr class="separator:a297febbe26bf8f4f4033645eb92daf6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a5545bffcee029cd23b3510651be515"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1depth__sense_1_1_depth_sense_device_manager.html#a6a5545bffcee029cd23b3510651be515">startDevice</a> (const std::string &amp;sn)</td></tr>
<tr class="separator:a6a5545bffcee029cd23b3510651be515"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94440e581f64c055eb92f1a1cad715e1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1depth__sense_1_1_depth_sense_device_manager.html#a94440e581f64c055eb92f1a1cad715e1">stopDevice</a> (const std::string &amp;sn)</td></tr>
<tr class="separator:a94440e581f64c055eb92f1a1cad715e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:aa7c612316faebc3b18fcd2fe8332f5a9"><td class="memItemLeft" align="right" valign="top"><a id="aa7c612316faebc3b18fcd2fe8332f5a9"></a>
static Ptr &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getInstance</b> ()</td></tr>
<tr class="separator:aa7c612316faebc3b18fcd2fe8332f5a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private 成员函数</h2></td></tr>
<tr class="memitem:a97ae87f60eb12a5442585a3d69af07cd"><td class="memItemLeft" align="right" valign="top"><a id="a97ae87f60eb12a5442585a3d69af07cd"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>captureDevice</b> (<a class="el" href="structpcl_1_1io_1_1depth__sense_1_1_depth_sense_grabber_impl.html">DepthSenseGrabberImpl</a> *grabber, DepthSense::Device device)</td></tr>
<tr class="separator:a97ae87f60eb12a5442585a3d69af07cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aabc145b3b515322fe5ebab8e25d9b6be"><td class="memItemLeft" align="right" valign="top"><a id="aabc145b3b515322fe5ebab8e25d9b6be"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isCaptured</b> (const std::string &amp;sn) const</td></tr>
<tr class="separator:aabc145b3b515322fe5ebab8e25d9b6be"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a2ca0b273ec3af41d95fe2ca3741a9ad9"><td class="memItemLeft" align="right" valign="top"><a id="a2ca0b273ec3af41d95fe2ca3741a9ad9"></a>
DepthSense::Context&#160;</td><td class="memItemRight" valign="bottom"><b>context_</b></td></tr>
<tr class="separator:a2ca0b273ec3af41d95fe2ca3741a9ad9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b9404473dd6f86eaad96d07b3e6211c"><td class="memItemLeft" align="right" valign="top"><a id="a4b9404473dd6f86eaad96d07b3e6211c"></a>
boost::thread&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1io_1_1depth__sense_1_1_depth_sense_device_manager.html#a4b9404473dd6f86eaad96d07b3e6211c">depth_sense_thread_</a></td></tr>
<tr class="memdesc:a4b9404473dd6f86eaad96d07b3e6211c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Thread where the grabbing takes place. <br /></td></tr>
<tr class="separator:a4b9404473dd6f86eaad96d07b3e6211c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f9b403a3570ed578af8110cafb9ea4f"><td class="memItemLeft" align="right" valign="top"><a id="a3f9b403a3570ed578af8110cafb9ea4f"></a>
std::map&lt; std::string, <a class="el" href="structpcl_1_1io_1_1depth__sense_1_1_depth_sense_device_manager_1_1_captured_device.html">CapturedDevice</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>captured_devices_</b></td></tr>
<tr class="separator:a3f9b403a3570ed578af8110cafb9ea4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-static-attribs"></a>
静态 Private 属性</h2></td></tr>
<tr class="memitem:a6568b1ba6af946f2d88fd7745e98377c"><td class="memItemLeft" align="right" valign="top"><a id="a6568b1ba6af946f2d88fd7745e98377c"></a>
static boost::mutex&#160;</td><td class="memItemRight" valign="bottom"><b>mutex_</b></td></tr>
<tr class="separator:a6568b1ba6af946f2d88fd7745e98377c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>A helper class for enumerating and managing access to DepthSense devices. </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a6cc6c8e88bb56a49948ce21ca746e72c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6cc6c8e88bb56a49948ce21ca746e72c">&#9670;&nbsp;</a></span>captureDevice() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string pcl::io::depth_sense::DepthSenseDeviceManager::captureDevice </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcl_1_1io_1_1depth__sense_1_1_depth_sense_grabber_impl.html">DepthSenseGrabberImpl</a> *&#160;</td>
          <td class="paramname"><em>grabber</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Capture first available device and associate it with a given grabber instance. </p>

</div>
</div>
<a id="aa19f5dac997a28999fc13ba81a768bc0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa19f5dac997a28999fc13ba81a768bc0">&#9670;&nbsp;</a></span>captureDevice() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string pcl::io::depth_sense::DepthSenseDeviceManager::captureDevice </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcl_1_1io_1_1depth__sense_1_1_depth_sense_grabber_impl.html">DepthSenseGrabberImpl</a> *&#160;</td>
          <td class="paramname"><em>grabber</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>sn</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Capture the device with given serial number and associate it with a given grabber instance. </p>

</div>
</div>
<a id="a29a134cf65e0c5f26eab6d1069c49dfb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29a134cf65e0c5f26eab6d1069c49dfb">&#9670;&nbsp;</a></span>captureDevice() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string pcl::io::depth_sense::DepthSenseDeviceManager::captureDevice </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcl_1_1io_1_1depth__sense_1_1_depth_sense_grabber_impl.html">DepthSenseGrabberImpl</a> *&#160;</td>
          <td class="paramname"><em>grabber</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Capture the device with given index and associate it with a given grabber instance. </p>

</div>
</div>
<a id="affbc72f553f65799a2c9325c6f71f274"></a>
<h2 class="memtitle"><span class="permalink"><a href="#affbc72f553f65799a2c9325c6f71f274">&#9670;&nbsp;</a></span>getNumDevices()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t pcl::io::depth_sense::DepthSenseDeviceManager::getNumDevices </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get the number of connected DepthSense devices. </p>
<div class="fragment"><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;          {</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;            <span class="keywordflow">return</span> (context_.getDevices ().size ());</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;          }</div>
</div><!-- fragment -->
</div>
</div>
<a id="a297febbe26bf8f4f4033645eb92daf6e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a297febbe26bf8f4f4033645eb92daf6e">&#9670;&nbsp;</a></span>reconfigureDevice()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::io::depth_sense::DepthSenseDeviceManager::reconfigureDevice </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>sn</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Reconfigure DepthSense device with given serial number. </p>

</div>
</div>
<a id="a07b2916e77e3c154ad30183d58521bc6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07b2916e77e3c154ad30183d58521bc6">&#9670;&nbsp;</a></span>releaseDevice()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::io::depth_sense::DepthSenseDeviceManager::releaseDevice </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>sn</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Release DepthSense device with given serial number. </p>

</div>
</div>
<a id="a6a5545bffcee029cd23b3510651be515"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a5545bffcee029cd23b3510651be515">&#9670;&nbsp;</a></span>startDevice()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::io::depth_sense::DepthSenseDeviceManager::startDevice </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>sn</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Start data capturing for a given device. </p>

</div>
</div>
<a id="a94440e581f64c055eb92f1a1cad715e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94440e581f64c055eb92f1a1cad715e1">&#9670;&nbsp;</a></span>stopDevice()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::io::depth_sense::DepthSenseDeviceManager::stopDevice </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>sn</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Stop data capturing for a given device. </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>io/include/pcl/io/depth_sense/<a class="el" href="depth__sense__device__manager_8h_source.html">depth_sense_device_manager.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>io</b></li><li class="navelem"><b>depth_sense</b></li><li class="navelem"><a class="el" href="classpcl_1_1io_1_1depth__sense_1_1_depth_sense_device_manager.html">DepthSenseDeviceManager</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
